feat: add Custom Copyright Name and URL redirection#424
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary
|
There was a problem hiding this comment.
Pull request overview
Adds configurable copyright display settings (name + optional URL) that flow from Spatie Settings → admin UI → footer rendering, enabling a branded/footer link without hardcoding.
Changes:
- Adds
copyright_nameandcopyright_urltoGeneralSettings(and a settings migration to persist them). - Extends the admin general settings form + controller validation/persistence for the new fields.
- Updates the main footer to display a custom name and optionally render it as a link; adds feature tests for viewing/updating/validating these settings.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/Feature/Admin/GeneralSettingTest.php | Adds feature coverage for viewing/updating/clearing/validating the new settings. |
| resources/default/js/Shared/MainFooter.vue | Renders the copyright name with optional URL link in the footer. |
| resources/default/js/Pages/Admin/Setting/GeneralSetting.vue | Adds inputs for copyright name/URL to the admin settings UI. |
| database/settings/2026_07_03_000000_add_copyright_fields_to_general_settings.php | Adds two new settings keys under the general settings group. |
| app/Settings/GeneralSettings.php | Declares the new settings properties so they can be serialized/shared. |
| app/Http/Controllers/Admin/Settings/GeneralSettingController.php | Validates and saves the new fields on update. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const canShowCustomFooter = !isAdminRoute && customFooterEnabled; | ||
|
|
||
| const generalSettings = usePage().props.generalSettings; | ||
| const displayCopyrightName = generalSettings.copyright_name || generalSettings.site_name; | ||
| const copyrightUrl = generalSettings.copyright_url; |
No description provided.